﻿<!DOCTYPE html>
<html>
<head>
    <title>充值记录</title>
</head>
<body>
    <div>
        <section data-role="page" id="historyrecharge_main">
            <div id="historyrecharge_content">
                    <div style="text-align:center;font-size:12px;display:none;" runat="server" id="msg"><img src="images/history-recharge.png"/><span id="msgText">暂无充值信息</span></div>
                    <asp:Repeater runat="server" ID="rptHistoryrecharge">
                        <ItemTemplate>
                            <!--开始-->
                            <div class="item">
                            <!--left-->
                                <div class="item-left">
                                    <div class="left-left">
                                        <span><%#Convert.ToDateTime(Eval("RechargeCreateTime")).ToString("yyyy-MM-dd")%></span>
                                        <span><%#Convert.ToDateTime(Eval("RechargeCreateTime")).ToString("HH:mm")%></span>
                                    </div>
                                    <div class="left-right">
                                        <span></span>
                                        <div></div>
                                    </div>
                                </div>
            
                                <!--right-->
                                <div class="item-right">
                                    <div class="right-main">
                                        <div class="sjx sjx-bottom"></div>
                                        <div class="sjx sjx-top"></div>
                                        <span>单号<span style="color:red;margin-left:10px;"><%#Eval("RechargeAccount")%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>变动金额<span style="color:red;margin-left:10px;"><%#Convert.ToDecimal(Eval("RechargeMoney")).ToString("0.00")%></span></span>
                                        <hr color="#CCCCCC" size="1"/>
                                        <span>充值类型<span style="color:red;margin-left:10px;"><%#this.GetTypeStr(Eval("RechargeType")) %></span></span>
                                    </div>
                                </div>
                            </div>
                            <!--结束-->
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

            <script type="text/javascript">
                $(function () {
                    setTimeout("setHeight()", 1000);
                })

                function setHeight() {
                    $(".item-right").each(function (index, element) {
                        var h = $(this).height() + 10 + index * 5;
                        $(".left-right span").eq(index).height(h);
                        var offset = index * -5;
                        if (index != 0) {
                            $(".left-right span").eq(index).css({ "position": "relative", "top": offset + "px" });
                        }
                    });
                }
            </script>
            <footer data-role="footer" data-position="fixed" id="historyrecharge_footer">
                <div data-role="navbar" id="nav-glyphish-example">
                    <ul>
                        <li><a href="#index" data-icon="custom" id="site">商家网站</a></li>
                        <li><a href="#goodlist" data-load="goodlist.aspx" data-icon="custom" id="buy">商品购买</a></li>
                        <li><a href="#membershipcard" data-load="membershipcard.aspx" data-icon="custom"  id="card" class="ui-btn-active">会员卡</a></li>
                        <li><a href="#giftlist" data-load="giftlist.aspx" data-icon="custom" id="convert">积分兑换</a></li>
                    </ul>
                </div>
            </footer>
        </section>
    </div>
</body>
</html>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="historyrecharge.aspx.cs" Inherits="historyrecharge" EnableViewState="false" %>